package com.qtenv.datasync.service.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qtenv.datasync.service.entity.BiZbx;
import com.qtenv.datasync.service.mapper.BiZbxMapper;
import com.qtenv.datasync.service.service.BiZbxService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * BI指标值 服务实现类
 * </p>
 *
 * @author CBL
 * @since 2022-08-01
 */
@Service
public class BiZbxServiceImpl extends ServiceImpl<BiZbxMapper, BiZbx> implements BiZbxService {

    @Override
    public BiZbx getNewestMonthOverview(String tenantId) {
        return this.getBaseMapper().getNewestMonthOverview(tenantId);
    }

    @Override
    public BiZbx getNewestYearOverview(String tenantId) {
        return this.getBaseMapper().getNewestYearOverview(tenantId);
    }

    @Override
    public List<BiZbx> getYearProdSaleList(String tenantId) {
        return this.getBaseMapper().getYearProdSaleList(tenantId);
    }

    @Override
    public List<BiZbx> getDmaProdSaleList(String tenantId, String areaId) {
        return this.getBaseMapper().getDmaProdSaleList(tenantId, areaId);
    }

    @Override
    public List<BiZbx> getZoneProdSaleList(String tenantId) {
        return this.getBaseMapper().getZoneProdSaleList(tenantId);
    }

    @Override
    public BiZbx getZoneProdSaleRatio(String tenantId, String areaId) {
        return this.getBaseMapper().getZoneProdSaleRatio(tenantId, areaId);
    }

    @Override
    public BiZbx getCompanyAssetsData(String tenantId) {
        return this.getBaseMapper().getCompanyAssetsData(tenantId);
    }

    @Override
    public BiZbx getZoneTagInfo(String tenantId, String areaId) {
        return this.getBaseMapper().getZoneTagInfo(tenantId, areaId);
    }

    @Override
    public BiZbx getDmaTagInfo(String tenantId, String areaId) {
        return this.getBaseMapper().getDmaTagInfo(tenantId, areaId);
    }

    @Override
    public List<BiZbx> getZoneLatestProdSaleList(String tenantId, String areaId) {
        return this.getBaseMapper().getZoneLatestProdSaleList(tenantId, areaId);
    }

    @Override
    public List<BiZbx> getDmaLatestProdSaleList(String tenantId, String areaId) {
        return this.getBaseMapper().getDmaLatestProdSaleList(tenantId, areaId);
    }
}
